<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>碧城</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="css/tuangou.css" rel="stylesheet" type="text/css">
<link href="css/order.css" rel="stylesheet" type="text/css">
<link href="css/vip.css" rel="stylesheet" type="text/css">
<link href="css/head.css" type="text/css" rel="stylesheet">
<link href="css/foot.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="js/request.js"></script>
<script type="text/javascript">
	var display=false;
	function showIframe(){
		var noiframe = document.getElementById("addiframe");
		if(!display){
		  	noiframe.src="listAddress.htm";
		  	noiframe.style.display = 'block';
		  	display=true;
	  	}
	  	else{
	  		noiframe.src="";
		  	noiframe.style.display = 'none';
		  	display=false;
	  	}
  	}
  	
  	function showNewFrame(){
  		var noiframe = document.getElementById("addiframe");
  		noiframe.src="addAddress.htm";
		noiframe.style.display = 'block';
		display=true;
  	}
  	
  	function checkOrderinfo(){
  		var cname = document.getElementById("cname").innerHTML;
  		var addr = document.getElementById("addr").innerHTML;
  		
  		if(cname == null || cname == "" || cname == "null" || addr == null || addr == ""){
  			alert('对不起,您的配送信息不完善');
  			return false;
  		}
  	}
  </script>
<script type="text/javascript" src="img/login.js"></script>
<script type="text/javascript">
function checkSerach(){
var productname = document.getElementById("title").value;
	if(productname == null || productname == ""){
		
		alert('请输入商品名称');
		return false;
	}	
	else{
		if(productname.replace(/\s/g,"") == ""){
			window.location.href = "menu.do?method=MenuShow";
			return false;
		}else{
			return true;
		}
	
	}
}
</script>
</head>
<body>
<#------------------ include header -------------------------------->
<#include "/WEB-INF/view/header.ftl" />
<#------------------ include header -------------------------------->
<div class="share_body">
  <form name="orderCustomForm" id="orderCustomForm" method="post" action="saveOrderCustom.do">
  <input type="hidden" name="resultURL" id="resultURL" value="">
    <table class="table3" width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
      <tbody>
        <tr>
          <td width="5"></td>
          <td valign="top" align="center">
          <table class="table3" width="50%" border="0" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                  <td align="center">&nbsp;<@s.actionerror/></td>
                </tr>
              </tbody>
            </table>
            <a name="address"></a>
            <table class="table3" id="table26" width="600" bgcolor="#e0e0e0" border="0" cellpadding="5" cellspacing="1">
              <tbody>
                <tr>
                  	<td colspan="5" class="plist_title4_2" width="100%" align="left" bgcolor="#fcdbba"> 
                  	配送地址
                  	<input type="hidden" name="addressId" id="addressId" value="${(cart?if_exists).addressId?if_exists}">
					</td>
                </tr>
                <tr>
                  <td align="left" bgcolor="#efefef">
                  <table width="100%" border="0" cellpadding="3" cellspacing="0">
                      <tbody>
                        <tr>
                          <td valign="top" width="88%"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                              <tbody>
                                <tr>
                                  <td width="9%" align="left" height="25"> 收货人：</td>
                                  <td width="91%">${(address?if_exists).cname?if_exists}</td>
                                </tr>
                                <tr>
                                  <td width="9%" align="left" height="25">电&nbsp;&nbsp;&nbsp;&nbsp;话：</td>
                                  <td>${(address?if_exists).tel?if_exists}</td>
                                </tr>
                                <tr>
                                  <td align="left" height="25"> 手&nbsp;&nbsp;&nbsp;&nbsp;机：</td>
                                  <td>${(address?if_exists).mobil?if_exists}</td>
                                </tr>
                                <tr>
                                  <td align="left" height="25"> 邮&nbsp;&nbsp;&nbsp;&nbsp;箱：</td>
                                  <td>${(address?if_exists).email?if_exists}</td>
                                </tr>
                                <tr>
                                  <td align="left" height="25"> 地&nbsp;&nbsp;&nbsp;&nbsp;址：</td>
                                  <td><div id="addr" class="vip_td1">${currentAddr?if_exists}</div>
                                    <#if address?exists>
	                                    <#if ((address?if_exists).addrflag?if_exists)==1>
	                                    <span class="vip_green">[已审核]</span>
	                                    <#else>
	                                    <span class="vip_red">[等待审核]</span>
	                                    </#if>
                                    </#if>
                                   </td>
                                </tr>
                                <tr>
                                  <td valign="top">说&nbsp;&nbsp;&nbsp;&nbsp;明：</td>
                                  <td><span class="vip_brown">如果您选用了未审核的新地址进行订购,客服中心将在工作时间（9:00-20:00）与您电话联系,以确认新的送货地址无误。 </span></td>
                                </tr>
                              </tbody>
                            </table>
                            <input name="Submit2" value="配送到其它地址" onClick="showIframe();" type="button">
                          </td>
                        </tr>
                        <tr>
                          <td></td>
                        </tr>
                      </tbody>
                    </table></td>
                </tr>
              </tbody>
            </table>
           
           <iframe name="addiframe" id="addiframe" style="display:none;" width="600" scr frameborder="0" height="250"></iframe>

            <a name="deliveryMode"></a>
            <table class="table3" id="table26" width="600" bgcolor="#e0e0e0" border="0" cellpadding="5" cellspacing="1">
              <tbody>
                <tr>
                  <td colspan="9" class="plist_title4_2" align="left" bgcolor="#fcdbba"> 配送方式 </td>
                </tr>
                <tr>
                  <td width="11%" align="left" bgcolor="#efefef">
                  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <tbody>
                        <tr class="table3" bgcolor="#e0e0e0">
                          <td valign="top" width="86%">
                          <table width="100%" border="0" cellpadding="3" cellspacing="0">
                              <tbody>
                                <#list deliveryModes?if_exists as deliveryMode>
                                <tr>
                                  <td width="88%" align="left" bgcolor="#efefef">
                                  	<input  type="radio" name="deliveryMode" id="deliveryMode" value="${deliveryMode.idno}" <#if deliveryMode.idno==cart.deliveryMode>checked="true"</#if>>
                                  	${deliveryMode.cname}<font color="red">(配送费${freights[deliveryMode.idno?string]}元)</font>
                                  </td>
                                </tr>
                                </#list>

                                <tr>
                                  <td align="left" bgcolor="#efefef">门店名称：${(shop?if_exists).shopname?if_exists}</td>
                                </tr>
                                <tr>
                                  <td align="left" bgcolor="#efefef">门店地址：${(shop?if_exists).shopaddr?if_exists}</td>
                                </tr>
                                <tr>
                                  <td align="left" bgcolor="#efefef">联系电话：${(shop?if_exists).shoptel?if_exists}</td>
                                </tr>
                                <tr>
                                  <td align="right" bgcolor="#efefef">(<a href="#">配送费用说明 </a>)</td>
                                </tr>
                              </tbody>
                            </table></td>
                        </tr>
                      </tbody>
                    </table></td>
                </tr>
              </tbody>
            </table>
            <a name="split"></a>
            <table id="table26" class="table3" width="600" bgcolor="#e0e0e0" border="0" cellpadding="5" cellspacing="1">
              <tbody>
                <tr>
                  <td class="plist_title4_2" align="left" bgcolor="#fcdbba"> 生鲜冷冻商品由于特殊性，只能按照最早配送时间生成订单。 </td>
                </tr>
                <tr>
                  <td align="left" bgcolor="#efefef"><table width="100%" border="0" cellpadding="3" cellspacing="0">
                      <tbody>
                        <tr>
                          <td width="28%"> 其他商品是否选择一起配送 </td>
                          <td width="72%" align="left">
	                          <input name="split" value="0" <#if cart.split==0>checked="checked"</#if> type="radio">是
	                          <input name="split" value="1" <#if cart.split==1>checked="checked"</#if> type="radio">否
                          </td>
                        </tr>
                      </tbody>
                    </table></td>
                </tr>
              </tbody>
            </table>
            <a name="paymentMode"></a>
            <table class="table3" id="table26" width="600" bgcolor="#e0e0e0" border="0" cellpadding="5" cellspacing="1">
              <tbody>
                <tr>
                  <td colspan="5" class="plist_title4_2" width="100%" align="left" bgcolor="#fcdbba"> 付款方式 </td>
                </tr>
                <tr>
                  <td align="left" bgcolor="#efefef"><table width="100%" border="0" cellpadding="3" cellspacing="0">
                      <tbody>
                      <#list payModes?if_exists as payMode>
                        <tr>
                          <td width="4%" align="right"><input id="payMode" name="payMode" value="${payMode.idno}" <#if cart.payMode==payMode.idno>checked="checked"</#if> type="radio"></td>
                          <td width="96%"> ${payMode.cname} </td>
                        </tr>
                      </#list>
                      </tbody>
                    </table></td>
                </tr>
              </tbody>
            </table>
            <table class="table3" width="50%" border="0" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                  <td align="center"><input name="Submit" value="确定" type="submit">
                  </td>
                </tr>
              </tbody>
            </table></td>
        </tr>
      </tbody>
    </table>
  </form>
</div>
<link href="img/style.css" type="text/css" rel="stylesheet">
<link href="img/foot.css" type="text/css" rel="stylesheet">
<div class="foot_outer1">
  <div class="foot02"></div>
  <div class="foot02"></div>
  <div class="foot02"></div>
  <div class="foot02"></div>
  <div class="foot03"></div>
</div>
<#------------------------------ include file  -------------------------------------------->
<#include "/WEB-INF/view/footer.ftl" />
<#------------------------------  include file  ------------------------------------------->
</body>
</html>
